#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtGui>
#include <item.h>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void paintBoard(short board[50][50]);//paint Board class on graphicsView element
private slots:    
    void on_actionStartGame_triggered();
    int on_actionConnect_triggered();
    int on_actionServer_triggered();
    void on_actionBest_triggered();
    void on_actionExit_triggered();
    void on_actionRules_triggered();
    void on_actionAbout_triggered();
    void keyPressEvent(QKeyEvent *event);

private:
    Ui::MainWindow *ui;
    QDialog *dconnect;
    QDialog *dserver;
    QGraphicsScene *scene;
    Item *i;
};

#endif // MAINWINDOW_H
